<?php include TMPL_PATH.'public/header.phtml';?>
<div class="subnav">
    <div class="content-menu ib-a blue line-x">
    <a href='<?php echo U('order/order_list');?>' ><em>订单列表</em></a><span>|</span><a href='<?php echo U('order/order_edit', 'oid='.$order['id']);?>'><em>订单详细信息</em></a><span>|</span>
        <a href='javascript:;' class="on"><em>订单产品信息</em></a> <span>|</span>&nbsp;订单号:<?php echo $order['order_sn'];?>
    </div>
</div>

<style type='text/css'>
.table_form tbody td{ border: 1px solid #EEEEEE;}
.division {
    background: none repeat scroll 0 0 #FFFFFF;
    border-color: #CCCCCC #BEC6CE #BEC6CE #CCCCCC;
    border-style: solid;
    border-width: 1px 2px 2px 1px;
    line-height: 150%;
    white-space: normal;
}
.division table {
    margin: 0;
    padding: 0;
}
.division th, .division td {
    border-color: #FFFFFF #DBE2E7 #DDDDDD #FFFFFF;
    border-left: 1px solid #FFFFFF;
    border-right: 1px solid #DBE2E7;
    border-style: solid;
    border-width: 1px;
    padding: 5px;
    vertical-align: top;
}
.division th {
    background: none repeat scroll 0 0 #E2E8EB;
    border-right: 1px solid #CCCCCC;
    font-size: 14px;
    text-align: right;
    white-space: nowrap;
    width: 140px;
}
.gridlist th{
	text-align:center;
	font-weight: bold;
	font-size: 12px;
}
.order_th{font-size: 14px; color: rgb(0, 0, 0); font-weight: bold; margin: 10px;overflow:hidden;}
</style>
<div class="pad-10">
<div class="col-tab">
<form name="myform" id="myform" action="__SELF__" method="post">
<div id="div_setting_1" class="contentList division pad-10">
	<div class="order_th">收货人信息</div>
<div id="div_setting_4" class="contentList division pad-10 ">
<table width="100%" cellspacing="0" cellpadding="0" border="0" class="table_form"> 
	<tbody>
	<tr> 

		<th width="10%">收货地区：</th> 
	 	<td width="40%" id="area"><select name="delivery_cid">
			<option value="0" selected>请选择国家</option>*
		<?php 
			if($countryList):
				foreach ($countryList as $country):
		?>
			<option value="<?php echo $country['id'];?>" <?php if($order['delivery_cid']==$country['id'])echo'selected';?>><?php echo $country['name'];?></option>
		<?php 
				endforeach;
			endif;
		?>
			</select>
		</td>
		<th width="10%">收货人姓名：</th> 
		<td width="40%"><input type="text" value="<?php echo $order['delivery_first_name'];?>" name="delivery_first_name" class="input-text">
		<input type="text" value="<?php echo $order['delivery_last_name'];?>" name="delivery_last_name" class="input-text">*</td>
	</tr>
 	<tr>
 		<th>省份：</th> 
 		<td><input type="text" value="<?php echo $order['delivery_province'];?>" name="delivery_province" class="input-text" style="width:300px">*</td> 
 		<th>城市：</th> 
		<td><input type="text" class="input-text" value="<?php echo $order['delivery_city'];?> " name="delivery_city" style="width:300px">*</td> 
 		
 	</tr>
 	<tr>
		<th>收货地址：</th> 
 		<td style="vertical-align: middle"><input type="text" value="<?php echo $order['delivery_address'];?>" name="delivery_address" class="input-text" style="width:300px">*<br>
		<input type="text" class="input-text" value="<?php echo $order['delivery_address2'];?> " name="delivery_address2" style="width:300px"><br>
 		<input type="text" value="<?php echo $order['delivery_address3'];?>" name="delivery_address3" class="input-text" style="width:300px"></td>

		<th style="vertical-align: middle">邮政编码：</th> 
		<td style="vertical-align: middle"><input type="text" value="<?php echo $order['delivery_postcode'];?>" name="delivery_postcode" class="input-text" >*</td> 
	</tr>
	<tr>
		<th>联系电话：</th> 
		<td><input type="text" value="<?php echo $order['delivery_phone'];?>" name="delivery_phone" class="input-text">*</td> 
		<th>邮件地址：</th> 
		<td><?php echo $order['delivery_email'];?></td> 
	</tr>
 	<tr>
 		<th>缺货处理：</th> 
 		<td colspan="3"><input type="radio" value="1" name="stockout" <?php if($order['stockout']==1)echo'checked';?>> 如果缺货则等待货物到齐后在一起发  <input type="radio" value="0" name="stockout" <?php if($order['stockout']==0)echo'checked';?>> 先发有货的商品</td> 
 	</tr> 
 	<tr>
 		<th>留言：</th> 
 		<td colspan="3" style="color:red"><?php echo $order['remark']?></td> 
 	</tr>
 </tbody>
</table>
</div>

<div class="order_th">第二收货地址信息</div>
<div class="contentList division pad-10 ">
<table width="100%" cellspacing="0" cellpadding="0" border="0" class="table_form"> 
	<tbody>
	<tr> 

		<th width="10%">收货地区：</th> 
	 	<td width="40%" id="area"><select name="delivery2_cid">
			<option value="0" selected>请选择国家</option>
		<?php 
			if($countryList):
				foreach ($countryList as $country):
		?>
			<option value="<?php echo $country['id'];?>" <?php if($order['delivery2_cid']==$country['id'])echo'selected';?>><?php echo $country['name'];?></option>
		<?php 
				endforeach;
			endif;
		?>
			</select>
		</td>
		<th width="10%">收货人姓名：</th> 
		<td width="40%"><input type="text" value="<?php echo $order['delivery2_first_name'];?>" name="delivery2_first_name" class="input-text">
		<input type="text" value="<?php echo $order['delivery2_last_name'];?>" name="delivery2_last_name" class="input-text"></td>
	</tr>
 	<tr>
 		<th>省份：</th> 
 		<td><input type="text" value="<?php echo $order['delivery2_province'];?>" name="delivery2_province" class="input-text" style="width:300px"></td> 
 		<th>城市：</th> 
		<td><input type="text" class="input-text" value="<?php echo $order['delivery2_city'];?> " name="delivery2_city" style="width:300px"></td> 
 		
 	</tr>
 	<tr>
		<th>收货地址：</th> 
 		<td style="vertical-align: middle"><input type="text" value="<?php echo $order['delivery2_address'];?>" name="delivery2_address" class="input-text" style="width:300px"><br>
		<input type="text" class="input-text" value="<?php echo $order['delivery2_address2'];?> " name="delivery2_address2" style="width:300px"><br>
 		<input type="text" value="<?php echo $order['delivery2_address3'];?>" name="delivery2_address3" class="input-text" style="width:300px"></td>

		<th style="vertical-align: middle">邮政编码：</th> 
		<td style="vertical-align: middle"><input type="text" value="<?php echo $order['delivery2_postcode'];?>" name="delivery2_postcode" class="input-text" ></td> 
	</tr>
	<tr>
		<th>联系电话：</th> 
		<td><input type="text" value="<?php echo $order['delivery2_phone'];?>" name="delivery2_phone" class="input-text"></td> 
		<th>邮件地址：</th> 
		<td><?php echo $order['delivery2_email'];?></td> 
	</tr>

 </tbody>
</table>
</div>
</div>
<div class="bk15"></div>
<div style="float:right">
    <input name="dosubmit" type="submit" value="更新"  class="button" id="dosubmit" /></div>

</form>
</div>
<div class="bk30"></div>

</div>
</body>
</html>
